package com.foreknow.util;

import com.foreknow.bean.Guest;

import java.util.List;

public class DataUtil {
    public static Object[][] convert(List<Object> list){
        Object[][] m = new Object[list.size()][7];
        for(int i = 0;i<list.size();i++){
            Guest guest = (Guest) list.get(i);
            m[i][0] = guest.getId();
            m[i][1] = guest.getName();
            m[i][2] = guest.getPhone();
            m[i][3] = guest.getEmail();
            m[i][4] = guest.getTitle();
            m[i][5] = guest.getContent();
            m[i][6] = guest.getCreatedTime();
        }
        return m;
    }
}
